package com.sy.shopping.dto;

import lombok.Data;

@Data
public class ActionResult {
    private boolean success;
    private Integer code;
    private String msg;
    private Object obj;

    public ActionResult() {
    }

    public ActionResult(boolean success) {
        this.success = success;
    }

    public ActionResult(boolean success, Integer code) {
        this.success = success;
        this.code = code;
    }

    public ActionResult(boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }

    public ActionResult(boolean success, Object obj) {
        this.success = success;
        this.obj = obj;
    }

    public ActionResult(boolean success, Integer code, String msg) {
        this.success = success;
        this.code = code;
        this.msg = msg;
    }

    public ActionResult(boolean success, Integer code, String msg, Object obj) {
        this.success = success;
        this.code = code;
        this.msg = msg;
        this.obj = obj;
    }

    public ActionResult(Object obj) {
        this.obj = obj;
    }

}
